<template>
  <div class="home-banner">
    <!-- 轮播图组件 -->
    <XtxSlider :data="sliders" isAutoPlay />
  </div>
</template>

<script>
import { useBanner } from '@/hook/page'

export default {
  name: 'HomeBanner',
  setup () {
    const { sliders } = useBanner()
    return { sliders }
  }
}
</script>

<style scoped lang='less'>
.home-banner {
  width: 1240px;
  height: 500px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 98;
}
</style>
